import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import Pdf from '../components/pdf.vue'
import Input from '../components/input.vue'
import Cssdemo from '../components/cssdemo.vue'
import Hi from '../components/hi.vue'
import StaryySky from '../components/starrySky/StaryySky.vue'
import Pagination from '../components/ui/pagination.vue'
import Table from '../components/ui/utable.vue'
import MusicPlayer from '../view/musicPlayer.vue'
import PdfPoint from '../view/pdfPoint.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/test',
      name: 'test',
      component: test
    },
    {
      path: '/pdf',
      name: 'pdf',
      component: Pdf
    },
    {
      path: '/input/',
      name: 'input',
      component: Input
    },
    {
      path: '/css',
      name: 'cssdemo',
      component: Cssdemo
    },
    {
      path: '/hi',
      name: 'hi',
      component: Hi
    },
    {
      path: '/starr',
      name: 'starr',
      component: StaryySky
    },
    {
      path: '/page',
      name: 'page',
      component: Pagination
    },
    {
      path: '/table',
      name: 'table',
      component: Table
    },{
      path: '/player',
      name: 'player',
      component: MusicPlayer
    },{
      path: '/',
      redirect: '/point'
    },{
      path: '/point',
      component: PdfPoint
    }

  ]
})
